package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * SubgroupTypes entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class SubgroupTypeDTO extends Object implements IsSerializable {

	// Fields

	private long id;
	private String name;

	// Constructors

	/** default constructor */
	public SubgroupTypeDTO() {
	}

	/** full constructor */
	public SubgroupTypeDTO(String name) {
		this.name = name;
	}

	// Property accessors

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		String result = "" +
			"[ " + SubgroupTypeDTO.class + "]" +
			"id: " + id +
			", name: " + name
			;

		return result;
	}

}